/*
 * CS_SEARCH_MATCH_PLAYER.cpp
 *
 *  Created on: 2013. 9. 27.
 *      Author: mega@gamevil.com
 */

#include "../../Command.h"

#include "../../User.h"

namespace ProjectZ { namespace NCommand {

void Command::CS_SEARCH_MATCH_PLAYER(User * pUser, ::Network::Packet * pPacket)
{
//	PREPARE_PACKET;
//
//	char opp_id[32] = {0, };
//	pPacket->ParseMsg("%s", opp_id);
//
//	::Logger::GETLOG()->ToFile(::Logger::DEBUG, "CS_SEARCH_MATCH_PLAYER GID : %d, target=[%s]", pUser->GetGID(), opp_id);
//
//	int opp_slot_seq = ::ProjectZ::NGame::PVPSearchOppByName(pUser, opp_id);
//
//	PVPSendMatchPlayer(pUser, ((opp_slot_seq>0) ? 1 : -1), opp_id, opp_slot_seq, -1);
//
//	////
//	::ProjectZ::NGame::CBaseSpace * pSpace = NULL;//::GameBase::GETSPACEBASE().clsSpaceQueue.pop();
//	if (NULL == pSpace)
//	{
//		pSpace = new ::ProjectZ::NGame::CBaseSpace;
//	}
//
//	Space_Info spaceInfo;
//	spaceInfo.eType = ::ProjectZ::NGame::CBaseSpace::PVP;
//	spaceInfo.m_MaxPlayerCount = 2;
//	spaceInfo.GID = 100;
//
//	Space_Info::RandomObject randObject;
//	randObject.sGID = 5001;
//	randObject.x = 10;
//	randObject.y = 10;
//	spaceInfo.randomObject[0] = randObject;
//
//	pSpace->SetInfo(&spaceInfo);
//	pSpace->RandomBreakObjectValue = rand() % 4;
//
//	pUser->SetSpace(pSpace);
//	pSpace->EnterPlayer(pUser);
//
//	////
//	pUser->player_info.Locate = ::ProjectZ::PL_PVP_SEARCH;
//
//	pUser->player_info.old_x = pUser->player_info.x;
//	pUser->player_info.old_y = pUser->player_info.y;
//	pUser->player_info.old_degree = pUser->player_info.degree;
//
//	pUser->player_info.x = 240;
//	pUser->player_info.y = 528;
//	pUser->player_info.degree = 0;
//	pUser->player_info.bReadyFight = false;
}

} /*NCommand*/ } /*ProjectZ*/


